{extend name="layout"}

{block name="content"}
<p><a href="{:url('admin/ActivityCategory/create')}" class="btn btn-primary">新增分类</a></p>
	<table class="table table-hover table-bordered">
		<thead>
			<th>分类名称</th>
			
			<th>排序</th>
			<th>图标</th>
			<th>类别管理</th>
			<th>操作</th>
		</thead>
		<tbody>
			{foreach $datas as $v}
				<tr>
					<td>{$v->name}</td>
					<td>{$v->sorder}</td>
					<td><img src="/static/icons/{$v->icon}" alt="" width="40" height="40"></td>
					<td><a class="text-dark" href="{:url('admin/category_type/index', ['category_id' => $v->id])}">类别管理</a></td>
					<td>
					<a href="{:url('admin/activity_category/edit', ['id' => $v->id])}" class="far fa-edit text-dark"></a>
					<a href="javascript:;" class="far fa-trash-alt text-dark ml-3" data-url="{:url('admin/activity_category/delete',['id' => $v->id])}"></a>
					</td>
				</tr>
			{/foreach}
		</tbody>
	</table>
{/block}